<!DOCTYPE html>
<html>
<head>
    <title>攻略系列</title>
    <meta charset="utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <link rel="stylesheet" href="/js/plugins/bootstrap-4.1.1-dist/css/bootstrap.min.css">
    <script src="/js/plugins/jquery/jquery.min.js"></script>
    <script src="/js/plugins/bootstrap-4.1.1-dist/js/bootstrap.min.js"></script>
    <link rel="stylesheet" href="/css/font/css/font-awesome.min.css"/>
    <link rel="stylesheet" href="/css/reset.css"/>
    <link rel="stylesheet" href="/css/strategyCatalogs.css"/>
    <script src="/js/plugins/jrender/jrender.min.js"></script>
    <link rel="stylesheet" href="/js/plugins/dialog2/css/dialog.css"/>
    <script src="/js/plugins/dialog2/js/dialog.min.js"></script>
    <script src="/js/common.js"></script>

    <script>
        $(function () {
            var user = JSON.parse(sessionStorage.getItem("user"));
            $('.info').renderValues(user);
            var params = getParams();
            if (params) {
                $.get("/collectionces",{userId:params.userId,travelId:1},function (data) {
                    $('#allTravels').renderValues(data,{
                        getHref:function (item, value) {
                            var href = $(item).data('href');
                            $(item).attr('href', href + value);
                        }
                    });

                });
                $.get("/collectionces",{userId:params.userId,strategyId:1},function (data) {
                    $('#comment').renderValues(data, {
                        getstrategyId:function (item, value) {
                            var href = $(item).data('href');
                            $(item).attr('href', href + value);
                        }
                    })
                });
                $.get("/collectionces",{userId:params.userId,newsId:1},function (data) {
                    $('#smaller').renderValues(data, {
                        getId:function (item, value) {
                            var href = $(item).data('href');
                            $(item).attr('href', href + value);
                        }
                    })
                });
            }
        });
    </script>

</head>

<body>
<div class="search-head">
    <div class="row nav-search">
        <div class="col-2">
            <a href="javascript:history.go(-1);">
                <span><i class="fa fa-chevron-left fa-2x"></i></span>
            </a>
        </div>
        <div class="col-10">
            <div class="input-group-sm search">
                <input class="form-control searchBtn" placeholder="搜索我的收藏">
            </div>
        </div>
    </div>
</div>
<div class="container alert-info">
    <h5 class="container" style="color: #c10802">我的所有收藏</h5>
</div>
<div class="container">

    <div class="row info">
        <div class="col-2" style="margin-right: 25px;">
            <img  class="rounded-circle" render-src="headImgUrl" width="200%">
        </div>
        <div class="col-8">
            <h5 render-html="nickName" style="color: lightgreen"></h5>
            <ul class="list-inline">
                <li class="list-inline-item"><small style="color: #10a0ea">常住地</small></li>
                <li class="list-inline-item"><small render-html="place"></small></li>
                <li class="list-inline-item"><small style="color: lightseagreen">关注<span render-html="cares"></span></small></li>
                <li class="list-inline-item"><small style="color: deeppink">粉丝<span render-html="fans"></span></small></li>
            </ul>
        </div>
    </div>



</div>
<ul class="nav nav-pills nav-justified border border-left-0 border-top-0 border-right-0" id="pills-tab">
    <li class="nav-item ">
        <a class="nav-link active" id="pills-travel-tab" data-toggle="pill" href="#pills-travel">
            <span style="color: deepskyblue">游记收藏</span>
        </a>
    </li>
    <li class="nav-item">
        <a class="nav-link " id="pills-strategy-tab" data-toggle="pill" href="#pills-strategy">
            <span style="color: deepskyblue">攻略收藏</span>
        </a>
    </li>
    <li class="nav-item">
        <a class="nav-link " id="pills-news-tab" data-toggle="pill" href="#pills-news">
            <span style="color: deepskyblue">日报收藏</span>
        </a>
    </li>
</ul>


<div class="tab-content " id="pills-tabContent">
    <!--游记收藏-->
    <div class="tab-pane fade show active" id="pills-travel">

        <div id="allTravels">
            <hr>
            <div render-loop="list">
                <div class="row detail">
                    <div class="col-12 bigimg">
                        <a data-href="/travelContent.html?id=" render-key="list.travel.id" render-fun="getHref">
                            <img render-src="list.travel.coverUrl" width="100%">
                        </a>
                    </div>
                    <div class="col-12">
                        <a data-href="/travelContent.html?id=" render-key="list.travel.id" render-fun="getHref">
                            <h6 render-html="list.travel.title"></h6>
                        </a>
                    </div>

                </div>
            </div>
        </div>

    </div>
    <!--攻略收藏-->
    <div class="tab-pane fade " id="pills-strategy">
        <hr>
        <div id="comment">
            <div class="row hot" render-loop="list">
                <div class="col-12">
                    <a data-href="/strategyCatalogs.html?strategyId=" render-key="list.strategy.id" render-fun="getstrategyId">
                        <img render-src="list.strategy.coverUrl">
                        <p render-html="list.strategy.title"></p>
                    </a>
                </div>
            </div>
            </div>
        </div>
    <!--日报收藏-->
    <div class="tab-pane fade " id="pills-news">
        <div class="container hot">
            <div id="smaller">
                <div id="many" render-loop="list">
                    <div style="margin-bottom: 20px">
                        <a  data-href="/newsContent.html?id=" render-key="list.news.id" render-fun="getId">
                            <div class="row news-detail">
                                <div class="col-12">
                                    <img render-src="list.news.coverUrl" width="100%">
                                </div>
                                <div class="col-12">
                                    <h4 render-html="list.news.title"></h4>
                                    <p render-html="list.news.abstracts"></p>
                                </div>
                            </div>
                        </a>
                        <hr>
                    </div>
                </div>
            </div>

    </div>

    </div>
</div>




</body>
</html>